<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/lib/html5.js"></script>
    <script type="text/javascript" src="/lib/respond.min.js"></script>
    <script type="text/javascript" src="/lib/PIE_IE678.js"></script>
    <![endif]-->
    <link href="/css/H-ui.min.css" rel="stylesheet" type="text/css"/>
    <link href="/css/H-ui.admin.css" rel="stylesheet" type="text/css"/>
    <link href="/lib/icheck/icheck.css" rel="stylesheet" type="text/css"/>
    <link href="/lib/font-awesome/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <!--[if IE 7]>
    <link href="/lib/font-awesome/font-awesome-ie7.min.css" rel="stylesheet" type="text/css"/>
    <![endif]-->
    <link href="/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css"/>
    <!--[if IE 6]>
    <script type="text/javascript" src="/lib/DD_belatedPNG_0.0.8a-min.js"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>游戏添加</title>
</head>
<body>
<div class="pd-20">
    <form action="/users" th:action="@{/addOrModityGame}" method="post" th:object="${gameModel.game}"
          class="form form-horizontal" id="form-user-add">
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>id：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" value="" placeholder="" id="game-id" name="id"
                       th:value="*{id}"
                       datatype="*1-16"
                       nullmsg="id不能为空">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>游戏名：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" value="" placeholder="" id="game-gname" name="gname"
                       th:value="*{gname}"
                       datatype="*1-16"
                       nullmsg="应用名不能为空">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>发行厂商：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" value="" placeholder="" id="game-author" name="author"
                       th:value="*{author}"
                       datatype="*1-16"
                       nullmsg="请输入发行厂商名称！">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>评分</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" value="" placeholder="" id="game-score" name="score"
                       th:value="*{score}"
                       datatype="*1-16"
                       nullmsg="请输入评分！">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>描述：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" value="" placeholder="" id="game-description" name="description"
                       th:value="*{description}"
                       datatype="*1-16"
                       nullmsg="请输对该游戏的描述">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>类别：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" value="" placeholder="" id="game-category" name="category"
                       th:value="*{category}"
                       datatype="*1-16"
                       nullmsg="请输入游戏类别">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>排名：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" value="" placeholder="" id="game-grank" name="grank"
                       th:value="*{grank}"
                       datatype="*1-16"
                       nullmsg="请输入排名">
            </div>
            <div class="col-4"></div>
        </div>

        <div class="row cl">
            <div class="col-9 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="/lib/jquery.min.js"></script>
<script type="text/javascript" src="/lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="/lib/Validform_v5.3.2.js"></script>
<script type="text/javascript" src="/js/H-ui.js"></script>
<script type="text/javascript" src="/js/H-ui.admin.js"></script>
<script type="text/javascript">
    $(function () {
        $("#form-user-add").Validform({
            tiptype: 2,
        });
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
    });
</script>
<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F080836300300be57b7f34f4b3e97d911' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
    window.onbeforeunload=onclose;
    function onclose()
    {

    }
</script>
</body>
</html>